import { createApp  } from 'vue'
import App from './App.vue'
import ElementPlus from 'element-plus'
import './index.css'
import 'element-plus/dist/index.css'
// 导入所有的el-icon图标
import * as ElIconModules from '@element-plus/icons'
// 引入路由
import router from './router/router.config.js'

const app = createApp(App)
//  统一注册el-icon图标
for(let iconName in ElIconModules){
    app.component(iconName,ElIconModules[iconName])
}
app.use(router)
app.use(ElementPlus)
app.mount('#app')

